<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<link rel="stylesheet" href="../../../css/mui.min.css">
		<link rel="stylesheet" href="../css/new.css">
	</head>
	<body>
		<div class="mui-content" id="page">
			<div class="mui-row">
				<img class="p-posa p-mh p-mw" src="../img/user_center.png">
				<div class="p-posa p-mw user-h">
					<div class="user-yb p-yuanjiao">
						<img class="p-mw p-yuanjiao" src="../img/h.png">
					</div>
					<span>{{user.realName}}</span>
					<font>{{user.userName}}</font>
				</div>
				<!-- end user-h -->
				<div class="mui-row p-posa user-a">
					<div class="mui-col-sm-12 mui-col-xs-12">
						<div class="mui-table-view-cell">
							<a class="mui-navigate-right" @click.stop="toSetting">
								个人档案    
							</a>
							<!--
							<a class="mui-navigate-right">
								培训课程    
							</a>
							
							<a class="mui-navigate-right" @click.stop="toSetting">
								个人信息    
							</a>
							-->
						</div>
						<div class="p-posa user-a-a"></div>
						<div class="p-posa user-a-b"></div>
					</div>
				</div>
				<!-- end user-a -->
				<div class="p-posa p-mw user-b">Copyright © 2018-2020 中广核新能源</div>
			</div>
		</div>
		<script src="../../../js/mui.min.js"></script>
		<script src="../../../js/jquery-3.2.1.min.js"></script>
		<script type="text/javascript" src="../../../js/vue.js"></script>
		<script src="../js/mkeyplus.base.js?1"></script>
		<script src="../formal/js/api.js"></script>
		<script>
			var htapi = new HTGlobal();
			mui.init();
			mui.plusReady(function(){
				
			})
			var page = new Vue({
				el:"#page",
				data:{
					user:{
						username:'',
						usercode:''
					}
				},
				created(){
					this.pload()
				},
				methods:{
					toSetting(){
						mui.openWindow({
						  url: './personal_data.html',
						  id: 'group_personal_data.html'
						})
					},
					pload(){
						var _user = localStorage.getItem('groupUser');
						if(_user){
							this.user = JSON.parse(_user)
						}
					},
					logout(){
						htapi.outsidersLogout();
					}
				}
			});
			var first = null;
			mui.plusReady(function () {
				var new_back = mui.back;
				mui.back = function() {
					//首次按键，提示‘再按一次退出应用’
					if(!first) {
						first = new Date().getTime();
						mui.toast('再按一次退出应用');
						setTimeout(function() {
							first = null;
						}, 800);
					} else {
						if(new Date().getTime() - first < 1000) {
							plus.runtime.quit();
						}
					}
				}
			})
		</script>
	</body>
</html>
